import service from '@/utils/request'

// @Tags Environment
// @Summary 创建Environment
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Environment true "创建Environment"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /environment/createEnvironment [post]
export const createEnvironment = (data) => {
     return service({
         url: "/environment/createEnvironment",
         method: 'post',
         data
     })
 }


// @Tags Environment
// @Summary 删除Environment
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Environment true "删除Environment"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /environment/deleteEnvironment [delete]
 export const deleteEnvironment = (data) => {
     return service({
         url: "/environment/deleteEnvironment",
         method: 'delete',
         data
     })
 }

// @Tags Environment
// @Summary 删除Environment
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Environment"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /environment/deleteEnvironment [delete]
 export const deleteEnvironmentByIds = (data) => {
     return service({
         url: "/environment/deleteEnvironmentByIds",
         method: 'delete',
         data
     })
 }

// @Tags Environment
// @Summary 更新Environment
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Environment true "更新Environment"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /environment/updateEnvironment [put]
 export const updateEnvironment = (data) => {
     return service({
         url: "/environment/updateEnvironment",
         method: 'put',
         data
     })
 }


// @Tags Environment
// @Summary 用id查询Environment
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Environment true "用id查询Environment"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /environment/findEnvironment [get]
 export const findEnvironment = (params) => {
     return service({
         url: "/environment/findEnvironment",
         method: 'get',
         params
     })
 }


// @Tags Environment
// @Summary 分页获取Environment列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取Environment列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /environment/getEnvironmentList [get]
 export const getEnvironmentList = (params) => {
     return service({
         url: "/environment/getEnvironmentList",
         method: 'get',
         params
     })
 }